import request from '@/utils/request'
// 查询分页列表信息
export const gettypelistapi = params => request.get('ecm-microservice-biz/ecm/basic/energyType/page', { params })
// 查询分页列表信息
export const getmediumlistapi = params => request.get('ecm-microservice-biz/ecm/basic/energyMedium/page', { params })
// 新增类型
export const addnengyuantypeapi = data => request.post('ecm-microservice-biz/ecm/basic/energyType/add', data)
// 删除类型
export const delnengyuantypeapi = data => request.post(`ecm-microservice-biz/ecm/basic/energyType/delete?id=${data.id}`)
// 修改类型
export const putnengyuantypeapi = data => request.post('ecm-microservice-biz/ecm/basic/energyType/update', data)
// 新增介质
export const addnengyuanjiezhiapi = data => request.post('ecm-microservice-biz/ecm/basic/energyMedium/add', data)
// 删除介质
export const delengyuanjiezhiapi = data => request.post(`ecm-microservice-biz/ecm/basic/energyMedium/delete?id=${data.id}`)
// 修改介质
export const putnengyuanjiezhiapi = data => request.post('ecm-microservice-biz/ecm/basic/energyMedium/update', data)
// 查询用电单位列表
export const getyongdianlistapi=()=>request.get('ecm-microservice-biz/ecm/basic/energyType/getCompanyList')